package com.terry.sp.service.impl;

import com.terry.sp.core.services.AbstractService;
import com.terry.sp.dao.DeviceMapper;
import com.terry.sp.model.Device;
import com.terry.sp.service.DeviceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by CodeGenerator on 2019/04/21.
 */
@Service
@Transactional
public class DeviceServiceImpl extends AbstractService<Device> implements DeviceService {
    @Resource
    private DeviceMapper deviceMapper;

    public List<Device> showMyDevice(String objectNumber){
        return  deviceMapper.showAllDevice(objectNumber);
    }

}
